<?php
defined('CITY_BAO') or exit('Access Denied');
require CB_CORE.'modules/'.$config_module['module'].'/common.inc.php';
if($user->userid==0) show_message('您并没有登录！','-1');
$forward = $request->getParam('forward',SITE_URL);
if(isset($config_member['ifonline_user'])&&$config_member['ifonline_user']){
	delete_online_user($user->userid);
}
set_cookie('auth_user', '');
show_message('您已成功退出登录！',$forward);